Platform Explorer / Nuxeo Platform 2021.61

Contribution org.nuxeo.ecm.platform.routing.dm.operation.chains--chains

This contribution is part of XML component org.nuxeo.ecm.platform.routing.dm.operation.chains inside nuxeo-routing-dm-2021.61.12.jar /OSGI-INF/dm-task-operation-chains-contrib.xml

Extension Point

Extension point chains of component OperationServiceComponent.

Registration Order

10
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <chain id="simpleTask">
          <operation id="Context.FetchDocument"/>
          <operation id="Workflow.CreateRoutingTask">
            <param name="accept operation chain" type="string">
              setTaskDone
            </param>
            <param name="reject operation chain" type="string">
              setTaskDone
            </param>
            <param name="mappingProperties" type="Properties">
              <property key="dc:description">StepTask:dc:description</property>
              <property key="nt:directive">StepTask:dc:description</property>
            </param>
          </operation>
          <operation id="Context.RunDocumentOperationInNewTx">
            <param name="rollbackGlobalOnError" type="boolean">false</param>
            <param name="id" type="string">sendTaskCreatedNotificationMail
            </param>
          </operation>
        </chain>
  • <chain id="followLifeCycleTransitionTask">
          <operation id="Context.FetchDocument"/>
          <operation id="Workflow.CreateRoutingTask">
            <param name="accept operation chain" type="string">
              followLifeCycleTransition
            </param>
            <param name="reject operation chain" type="string">
              setTaskDone
            </param>
            <param name="mappingProperties" type="Properties">
              <property key="dc:description">StepTask:dc:description</property>
            </param>
          </operation>
          <operation id="Context.RunDocumentOperationInNewTx">
            <param name="rollbackGlobalOnError" type="boolean">false</param>
            <param name="id" type="string">sendTaskCreatedNotificationMail
            </param>
          </operation>
        </chain>
  • <chain id="publishTask">
          <operation id="Context.FetchDocument"/>
          <operation id="Workflow.CreateRoutingTask">
            <param name="accept operation chain" type="string">
              publishDocument
            </param>
            <param name="reject operation chain" type="string">
              setTaskDone
            </param>
            <param name="mappingProperties" type="Properties">
              <property key="dc:description">StepTask:dc:description</property>
            </param>
          </operation>
          <operation id="Context.RunDocumentOperationInNewTx">
            <param name="rollbackGlobalOnError" type="boolean">false</param>
            <param name="id" type="string">sendTaskCreatedNotificationMail
            </param>
          </operation>
        </chain>
  • <chain id="conditionalTask">
          <operation id="Context.FetchDocument"/>
          <operation id="Workflow.CreateRoutingTask">
            <param name="accept operation chain" type="string">
              evaluateCondition
            </param>
            <param name="reject operation chain" type="string">
              setTaskDone
            </param>
            <param name="mappingProperties" type="Properties">
              <property key="dc:description">StepTask:dc:description</property>
            </param>
          </operation>
          <operation id="Context.RunDocumentOperationInNewTx">
            <param name="rollbackGlobalOnError" type="boolean">false</param>
            <param name="id" type="string">sendTaskCreatedNotificationMail
            </param>
          </operation>
        </chain>
  • <chain id="setTaskDone">
          <operation id="Document.Routing.SetRunningStepFromTask">
            <param name="mappingComments" type="boolean">true</param>
          </operation>
          <operation id="Document.Routing.Resume.Step"/>
        </chain>
  • <chain id="undoRunningTask">
          <operation id="Workflow.RemoveRoutingTask"/>
          <operation id="Document.Routing.BackToReady"/>
        </chain>
  • <chain id="followLifeCycleTransition">
          <operation id="Context.FetchDocument"/>
          <operation id="Document.Routing.SetRunningStepFromTask"/>
          <operation id="Document.FollowLifecycleTransition">
            <param name="value" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
            </param>
          </operation>
    
          <operation id="Document.Routing.Resume.Step"/>
        </chain>
  • <chain id="publishDocument">
          <operation id="Context.FetchDocument"/>
          <operation id="Document.Routing.SetRunningStepFromTask"/>
          <operation id="Document.PublishToSection">
            <param name="target" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
            </param>
          </operation>
          <operation id="Document.Routing.Resume.Step"/>
        </chain>
  • <chain id="evaluateCondition">
          <operation id="Context.FetchDocument"/>
          <operation id="Document.Routing.SetRunningStepFromTask"/>
          <operation id="Document.Routing.EvaluateCondition">
            <param name="subject" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:subject")
            </param>
            <param name="operator" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:operator")
            </param>
            <param name="value" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:value")
            </param>
          </operation>
          <operation id="Update.NextStep.ConditionalFolder">
            <param name="nextStepPos" type="string">expr:Context['nextStepPos']
            </param>
          </operation>
          <operation id="Document.Routing.Resume.Step"/>
        </chain>
  • <chain id="sendTaskCreatedNotificationMail">
          <operation id="Notification.SendMail">
            <param name="from" type="string">Administrator@nuxeo.com</param>
            <param name="message" type="string">template:routingTaskAssigned
            </param>
            <param name="subject" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("dc:title")
            </param>
            <param name="to" type="stringlist">expr:Fn.getEmails(Context["document.routing.task.actors"])
            </param>
            <param name="HTML" type="boolean">false</param>
          </operation>
        </chain>

XML Source

<extension point="chains" target="org.nuxeo.ecm.core.operation.OperationServiceComponent">

    <chain id="simpleTask">
      <operation id="Context.FetchDocument"/>
      <operation id="Workflow.CreateRoutingTask">
        <param name="accept operation chain" type="string">
          setTaskDone
        </param>
        <param name="reject operation chain" type="string">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
          <property key="nt:directive">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param name="rollbackGlobalOnError" type="boolean">false</param>
        <param name="id" type="string">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="followLifeCycleTransitionTask">
      <operation id="Context.FetchDocument"/>
      <operation id="Workflow.CreateRoutingTask">
        <param name="accept operation chain" type="string">
          followLifeCycleTransition
        </param>
        <param name="reject operation chain" type="string">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param name="rollbackGlobalOnError" type="boolean">false</param>
        <param name="id" type="string">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="publishTask">
      <operation id="Context.FetchDocument"/>
      <operation id="Workflow.CreateRoutingTask">
        <param name="accept operation chain" type="string">
          publishDocument
        </param>
        <param name="reject operation chain" type="string">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param name="rollbackGlobalOnError" type="boolean">false</param>
        <param name="id" type="string">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="conditionalTask">
      <operation id="Context.FetchDocument"/>
      <operation id="Workflow.CreateRoutingTask">
        <param name="accept operation chain" type="string">
          evaluateCondition
        </param>
        <param name="reject operation chain" type="string">
          setTaskDone
        </param>
        <param name="mappingProperties" type="Properties">
          <property key="dc:description">StepTask:dc:description</property>
        </param>
      </operation>
      <operation id="Context.RunDocumentOperationInNewTx">
        <param name="rollbackGlobalOnError" type="boolean">false</param>
        <param name="id" type="string">sendTaskCreatedNotificationMail
        </param>
      </operation>
    </chain>

    <chain id="setTaskDone">
      <operation id="Document.Routing.SetRunningStepFromTask">
        <param name="mappingComments" type="boolean">true</param>
      </operation>
      <operation id="Document.Routing.Resume.Step"/>
    </chain>

    <chain id="undoRunningTask">
      <operation id="Workflow.RemoveRoutingTask"/>
      <operation id="Document.Routing.BackToReady"/>
    </chain>

    <chain id="followLifeCycleTransition">
      <operation id="Context.FetchDocument"/>
      <operation id="Document.Routing.SetRunningStepFromTask"/>
      <operation id="Document.FollowLifecycleTransition">
        <param name="value" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
        </param>
      </operation>

      <operation id="Document.Routing.Resume.Step"/>
    </chain>

    <chain id="publishDocument">
      <operation id="Context.FetchDocument"/>
      <operation id="Document.Routing.SetRunningStepFromTask"/>
      <operation id="Document.PublishToSection">
        <param name="target" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("tkst:directive")
        </param>
      </operation>
      <operation id="Document.Routing.Resume.Step"/>
    </chain>

    <chain id="evaluateCondition">
      <operation id="Context.FetchDocument"/>
      <operation id="Document.Routing.SetRunningStepFromTask"/>
      <operation id="Document.Routing.EvaluateCondition">
        <param name="subject" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:subject")
        </param>
        <param name="operator" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:operator")
        </param>
        <param name="value" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("ctkst:value")
        </param>
      </operation>
      <operation id="Update.NextStep.ConditionalFolder">
        <param name="nextStepPos" type="string">expr:Context['nextStepPos']
        </param>
      </operation>
      <operation id="Document.Routing.Resume.Step"/>
    </chain>

    <chain id="sendTaskCreatedNotificationMail">
      <operation id="Notification.SendMail">
        <param name="from" type="string">Administrator@nuxeo.com</param>
        <param name="message" type="string">template:routingTaskAssigned
        </param>
        <param name="subject" type="string">expr:Context["document.routing.step"].getDocument().getPropertyValue("dc:title")
        </param>
        <param name="to" type="stringlist">expr:Fn.getEmails(Context["document.routing.task.actors"])
        </param>
        <param name="HTML" type="boolean">false</param>
      </operation>
    </chain>
  </extension>